+1999-01-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * configure.in, config.h.in:
+ Check for features.h.
+
+ * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
+ Fixed bug in linked list append logic by replacing hand-coded
+ logic with a call to g_list_append. Bug found by tml.
+
+ * gdk/gdkimage.c:
+ 'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
+ in sys/ipc.h, including one specific admonishment to use
+ _SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
+ included features.h if present to obtain the necessary
+ side-effects.
+
+ * gtk/gtkclist.c, gtk/gtkeditable.c:
+ Eliminates comma-after-final-element warnings.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_init):
+ Fixed bug where an intl string was declared as _("x") in
+ local var initializer.
+
1998-12-31 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtklabel.c (gtk_label_split_text_wrapped):
+1999-01-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * configure.in, config.h.in:
+ Check for features.h.
+
+ * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
+ Fixed bug in linked list append logic by replacing hand-coded
+ logic with a call to g_list_append. Bug found by tml.
+
+ * gdk/gdkimage.c:
+ 'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
+ in sys/ipc.h, including one specific admonishment to use
+ _SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
+ included features.h if present to obtain the necessary
+ side-effects.
+
+ * gtk/gtkclist.c, gtk/gtkeditable.c:
+ Eliminates comma-after-final-element warnings.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_init):
+ Fixed bug where an intl string was declared as _("x") in
+ local var initializer.
+
1998-12-31 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtklabel.c (gtk_label_split_text_wrapped):
+1999-01-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * configure.in, config.h.in:
+ Check for features.h.
+
+ * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
+ Fixed bug in linked list append logic by replacing hand-coded
+ logic with a call to g_list_append. Bug found by tml.
+
+ * gdk/gdkimage.c:
+ 'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
+ in sys/ipc.h, including one specific admonishment to use
+ _SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
+ included features.h if present to obtain the necessary
+ side-effects.
+
+ * gtk/gtkclist.c, gtk/gtkeditable.c:
+ Eliminates comma-after-final-element warnings.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_init):
+ Fixed bug where an intl string was declared as _("x") in
+ local var initializer.
+
1998-12-31 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtklabel.c (gtk_label_split_text_wrapped):
+1999-01-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * configure.in, config.h.in:
+ Check for features.h.
+
+ * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
+ Fixed bug in linked list append logic by replacing hand-coded
+ logic with a call to g_list_append. Bug found by tml.
+
+ * gdk/gdkimage.c:
+ 'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
+ in sys/ipc.h, including one specific admonishment to use
+ _SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
+ included features.h if present to obtain the necessary
+ side-effects.
+
+ * gtk/gtkclist.c, gtk/gtkeditable.c:
+ Eliminates comma-after-final-element warnings.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_init):
+ Fixed bug where an intl string was declared as _("x") in
+ local var initializer.
+
1998-12-31 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtklabel.c (gtk_label_split_text_wrapped):
+1999-01-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * configure.in, config.h.in:
+ Check for features.h.
+
+ * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
+ Fixed bug in linked list append logic by replacing hand-coded
+ logic with a call to g_list_append. Bug found by tml.
+
+ * gdk/gdkimage.c:
+ 'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
+ in sys/ipc.h, including one specific admonishment to use
+ _SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
+ included features.h if present to obtain the necessary
+ side-effects.
+
+ * gtk/gtkclist.c, gtk/gtkeditable.c:
+ Eliminates comma-after-final-element warnings.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_init):
+ Fixed bug where an intl string was declared as _("x") in
+ local var initializer.
+
1998-12-31 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtklabel.c (gtk_label_split_text_wrapped):
+1999-01-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * configure.in, config.h.in:
+ Check for features.h.
+
+ * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
+ Fixed bug in linked list append logic by replacing hand-coded
+ logic with a call to g_list_append. Bug found by tml.
+
+ * gdk/gdkimage.c:
+ 'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
+ in sys/ipc.h, including one specific admonishment to use
+ _SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
+ included features.h if present to obtain the necessary
+ side-effects.
+
+ * gtk/gtkclist.c, gtk/gtkeditable.c:
+ Eliminates comma-after-final-element warnings.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_init):
+ Fixed bug where an intl string was declared as _("x") in
+ local var initializer.
+
1998-12-31 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtklabel.c (gtk_label_split_text_wrapped):
+1999-01-01 Jeff Garzik <jgarzik@pobox.com>
+
+ * configure.in, config.h.in:
+ Check for features.h.
+
+ * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
+ Fixed bug in linked list append logic by replacing hand-coded
+ logic with a call to g_list_append. Bug found by tml.
+
+ * gdk/gdkimage.c:
+ 'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
+ in sys/ipc.h, including one specific admonishment to use
+ _SVID_SOURCE or _XOPEN_SOURCE. Manually defined the latter, and
+ included features.h if present to obtain the necessary
+ side-effects.
+
+ * gtk/gtkclist.c, gtk/gtkeditable.c:
+ Eliminates comma-after-final-element warnings.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_init):
+ Fixed bug where an intl string was declared as _("x") in
+ local var initializer.
+
1998-12-31 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtklabel.c (gtk_label_split_text_wrapped):
/* Define if you have the <argz.h> header file. */
#undef HAVE_ARGZ_H
+/* Define if you have the <features.h> header file. */
+#undef HAVE_FEATURES_H
+
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
AC_SUBST(x_libs)
AC_SUBST(xinput_progs)
+AC_CHECK_HEADERS(features.h)
+
if test "x$enable_shm" = "xyes"; then
# Check for shared memory
AC_CHECK_HEADER(sys/ipc.h, AC_DEFINE(HAVE_IPC_H), no_sys_ipc=yes)
gdk_event_put (GdkEvent *event)
{
GdkEvent *new_event;
- GList *tmp_list;
g_return_if_fail (event != NULL);
new_event = gdk_event_copy (event);
- tmp_list = g_list_alloc();
- tmp_list->prev = putback_tail;
- tmp_list->next = NULL;
- tmp_list->data = new_event;
+ putback_tail = g_list_append(putback_tail, new_event);
if (!putback_events)
- {
- putback_events = tmp_list;
- putback_tail = tmp_list;
- }
+ putback_events = putback_tail;
else
- putback_tail->next = tmp_list;
+ putback_tail = putback_tail->next;
}
/*
if (gdk_event_translate (event, &xevent))
{
- GList *tmp_list = g_list_alloc();
- tmp_list->prev = queued_tail;
- tmp_list->next = NULL;
- tmp_list->data = event;
+ queued_tail = g_list_append(queued_tail, event);
if (!queued_events)
- {
- queued_events = tmp_list;
- queued_tail = queued_events;
- }
+ queued_events = queued_tail;
else
- queued_tail->next = tmp_list;
+ queued_tail = queued_tail->next;
}
else
gdk_event_free (event);
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
-#include "config.h"
+#include <config.h>
+
+/* gcc -ansi -pedantic on GNU/Linux causes warnings and errors
+ * unless this is defined:
+ * warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
+ */
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 1
+#endif
+#ifdef HAVE_FEATURES_H
+# include <features.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
gdk_event_put (GdkEvent *event)
{
GdkEvent *new_event;
- GList *tmp_list;
g_return_if_fail (event != NULL);
new_event = gdk_event_copy (event);
- tmp_list = g_list_alloc();
- tmp_list->prev = putback_tail;
- tmp_list->next = NULL;
- tmp_list->data = new_event;
+ putback_tail = g_list_append(putback_tail, new_event);
if (!putback_events)
- {
- putback_events = tmp_list;
- putback_tail = tmp_list;
- }
+ putback_events = putback_tail;
else
- putback_tail->next = tmp_list;
+ putback_tail = putback_tail->next;
}
/*
if (gdk_event_translate (event, &xevent))
{
- GList *tmp_list = g_list_alloc();
- tmp_list->prev = queued_tail;
- tmp_list->next = NULL;
- tmp_list->data = event;
+ queued_tail = g_list_append(queued_tail, event);
if (!queued_events)
- {
- queued_events = tmp_list;
- queued_tail = queued_events;
- }
+ queued_events = queued_tail;
else
- queued_tail->next = tmp_list;
+ queued_tail = queued_tail->next;
}
else
gdk_event_free (event);
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
-#include "config.h"
+#include <config.h>
+
+/* gcc -ansi -pedantic on GNU/Linux causes warnings and errors
+ * unless this is defined:
+ * warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
+ */
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 1
+#endif
+#ifdef HAVE_FEATURES_H
+# include <features.h>
+#endif
#include <stdlib.h>
#include <sys/types.h>
ARG_SELECTION_MODE,
ARG_ROW_HEIGHT,
ARG_REORDERABLE,
- ARG_USE_DRAG_ICONS,
+ ARG_USE_DRAG_ICONS
};
/* GtkCList Methods */
enum {
TARGET_STRING,
TARGET_TEXT,
- TARGET_COMPOUND_TEXT,
+ TARGET_COMPOUND_TEXT
};
static void gtk_editable_class_init (GtkEditableClass *klass);
GtkWidget *text_box, *frame;
GtkWidget *table, *label, *hbox, *hbox2, *clist, *button, *vbox, *alignment;
gint i, prop, row;
- gchar *titles[] = { _("Font Property"), _("Requested Value"), _("Actual Value") };
+ gchar *titles[] = { NULL, NULL, NULL };
gchar buffer[128];
gchar *size;
gint size_to_match;
gchar *property, *text;
gboolean inserted;
+ /* Number of internationalized titles here must match number
+ of NULL initializers above */
+ titles[0] = _("Font Property");
+ titles[1] = _("Requested Value");
+ titles[2] = _("Actual Value");
+
/* Initialize the GtkFontSelection struct. We do this here in case any
callbacks are triggered while creating the interface. */
fontsel->font = NULL;